home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / SeparatoGP.h.z / SeparatoGP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  4.7 KB  |  161 lines

  1. /*
  2.  * SeparatoGP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: SeparatoGP.h /main/cde1_maint/2 1995/08/18 19:22:32 drk $ */
  36. /*
  37. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38. #ifndef _XmSeparatorGadgetP_h
  39. #define _XmSeparatorGadgetP_h
  40.  
  41. #include <Xm/SeparatoG.h>
  42. #include <Xm/GadgetP.h>
  43. #include <Xm/ExtObjectP.h>
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. /*****************************************************************/
  50. /* The Separator Gadget Cache Object's class and instance records*/
  51. /*****************************************************************/
  52.  
  53. typedef struct _XmSeparatorGCacheObjClassPart
  54. {
  55.     int foo;
  56. } XmSeparatorGCacheObjClassPart;
  57.  
  58.  
  59. typedef struct _XmSeparatorGCacheObjClassRec  /* separator cache class record */
  60. {
  61.     ObjectClassPart                     object_class;
  62.     XmExtClassPart                      ext_class;
  63.     XmSeparatorGCacheObjClassPart       separator_class_cache;
  64. } XmSeparatorGCacheObjClassRec;
  65.  
  66. externalref XmSeparatorGCacheObjClassRec xmSeparatorGCacheObjClassRec;
  67.  
  68.  
  69. /*  The Separator Gadget Cache instance record  */
  70.  
  71. typedef struct _XmSeparatorGCacheObjPart
  72. {
  73.    Dimension      margin;
  74.    unsigned char  orientation;
  75.    unsigned char  separator_type;
  76.    GC             separator_GC;
  77. } XmSeparatorGCacheObjPart;
  78.  
  79. typedef struct _XmSeparatorGCacheObjRec
  80. {
  81.   ObjectPart                object;
  82.   XmExtPart            ext;
  83.   XmSeparatorGCacheObjPart  separator_cache;
  84. } XmSeparatorGCacheObjRec;
  85.  
  86.  
  87. /*****************************************************/
  88. /*  The Separator Widget Class and instance records  */
  89. /*****************************************************/
  90.  
  91. typedef struct _XmSeparatorGadgetClassPart
  92. {
  93.    XtPointer               extension;
  94. } XmSeparatorGadgetClassPart;
  95.  
  96.  
  97. /*  Full class record declaration for Separator class  */
  98.  
  99. typedef struct _XmSeparatorGadgetClassRec
  100. {
  101.    RectObjClassPart            rect_class;
  102.    XmGadgetClassPart           gadget_class;
  103.    XmSeparatorGadgetClassPart  separator_class;
  104. } XmSeparatorGadgetClassRec;
  105.  
  106. externalref XmSeparatorGadgetClassRec xmSeparatorGadgetClassRec;
  107.  
  108. typedef struct _XmSeparatorGadgetPart
  109. {
  110.   XmSeparatorGCacheObjPart  *cache;
  111. } XmSeparatorGadgetPart;
  112.  
  113. /*  Full instance record declaration  */
  114.  
  115. typedef struct _XmSeparatorGadgetRec
  116. {
  117.    ObjectPart             object;
  118.    RectObjPart            rectangle;
  119.    XmGadgetPart           gadget;
  120.    XmSeparatorGadgetPart  separator;
  121. } XmSeparatorGadgetRec;
  122.  
  123. /* MACROS for accessing instance fields*/
  124. #define SEPG_Margin(w)            (((XmSeparatorGadget)(w))->   \
  125.                        separator.cache->margin)
  126. #define SEPG_Orientation(w)        (((XmSeparatorGadget)(w))->   \
  127.                        separator.cache->orientation)
  128. #define SEPG_SeparatorType(w)        (((XmSeparatorGadget)(w))->   \
  129.                        separator.cache->separator_type)
  130. #define SEPG_SeparatorGC(w)        (((XmSeparatorGadget)(w))->   \
  131.                        separator.cache->separator_GC)
  132.  
  133. /* Convenience Macros */
  134. #define SEPG_Cache(w)                    (((XmSeparatorGadget)(w))->\
  135.                        separator.cache)
  136. #define SEPG_ClassCachePart(w) \
  137.         (((XmSeparatorGadgetClass)xmSeparatorGadgetClass)->gadget_class.cache_part)
  138.  
  139.  
  140. /********    Private Function Declarations    ********/
  141. #ifdef _NO_PROTO
  142.  
  143. extern int _XmSeparatorCacheCompare() ;
  144.  
  145. #else
  146.  
  147. extern int _XmSeparatorCacheCompare( 
  148.                         XtPointer A,
  149.                         XtPointer B) ;
  150.  
  151. #endif /* _NO_PROTO */
  152. /********    End Private Function Declarations    ********/
  153.  
  154.  
  155. #ifdef __cplusplus
  156. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  157. #endif
  158.  
  159. #endif /* _XmSeparatorGadgetP_h */
  160. /* DON'T ADD STUFF AFTER THIS #endif */
  161.